package cloud.kiko.psn.user.mapper;

import cloud.kiko.psn.pojo.common.biz.User;
import org.apache.ibatis.annotations.*;

/**
 * on 2023/2/12 23:29
 */
@Mapper
public interface UserMapper {
    @Select("select * from tb_user where id = #{id}")
    User findById(@Param("id") Long id);

    @Delete("delete * from tb_user where id=#{id}")
    boolean deleteUserById(long id);

    @Update("update tb_user set username=#{username},address=#{address}  where id=#{id}")
    boolean updateUser(User user);
}
